package SeleniumTest.page;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;

/**
 * Created with IntelliJ IDEA.
 * User: ae
 * Date: 16.07.13
 * Time: 22:07
 * To change this template use File | Settings | File Templates.
 */
public class RemindersPage extends BasePage {
    public RemindersPage(WebDriver driver) {
        mainMenu = new Navigation(driver);
    }
    public boolean isOnPage() {
        return mainMenu.getMenu().get(4).getAttribute("class").contains("selected");
    }
    public void goToPage(){
        mainMenu.getMenu().get(4).click();
        WebDriverWait wait = new WebDriverWait(Browser.driver(),10);
        wait.until(ExpectedConditions.titleContains("Buxfer: Reminders"));
    }
}
